#include <QCoreApplication>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    QCoreApplication e(argc, argv);
    cout<<"Vvedite trehznachnoe chislo: ";
    int a;
    cin>>a;
    a=int(a);
    cout<<"Summa ego cifr: "<<(a/100+(a/10-(a/100*10))+(a-(a/10*10)))<<", proizvedenie ego cifr: "<<(a/100*(a/10-(a/100*10))*(a-(a/10*10)))<<endl<<endl;

    return e.exec();
}
